package com.bdqn.shiro.service;


import com.bdqn.shiro.config.mybatis.ServiceImpl;
import com.bdqn.shiro.pojo.Right;
import com.bdqn.shiro.mapper.RightMapper;
import com.bdqn.shiro.pojo.Role;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 *
 */
@Service
public class RightServiceImpl extends ServiceImpl<RightMapper, Right>
    implements RightService{


    @Resource
    private RightMapper rightMapper;
    @Override
    public boolean saveRoleRight(Role role, String[] rightCodes) {
        return rightMapper.saveRoleRight(role,rightCodes);
    }
}




